import request from '@/sheep/request';

export default {
  // 获取聊天token
  livelist: (data) =>
    request({
      url: '/api/live/livelist',
      method: 'GET',
      data,
      custom: {
        showLoading: false,
        auth: true,
      },
    }),
  livemsg: (data) =>
    request({
      url: '/api/live/livemsg',
      method: 'POST',
      data,
      custom: {
        showLoading: false,
        auth: true,
      },
    }),
  videolist: (data) =>
    request({
      url: '/api/live/videolist',
      method: 'GET',
      data,
      custom: {
        showLoading: true,
        auth: true,
      },
    }),
  liveleave: (data) =>
    request({
      url: '/api/live/liveleave',
      method: 'GET',
      data,
      custom: {
        showLoading: true,
        auth: true,
      },
    }),
  videodz: (data) =>
    request({
      url: '/api/live/videodz',
      method: 'POST',
      data,
      custom: {
        showLoading: true,
        auth: true,
      },
    }),
  reward: (data) =>
    request({
      url: '/api/live/reward',
      method: 'POST',
      data,
      custom: {
        showLoading: true,
        auth: true,
      },
    }),
  liveshow: (data) =>
    request({
      url: '/api/live/liveshow',
      method: 'GET',
      data,
      custom: {
        showLoading: false,
        auth: true,
      },
    }),
  gift: (data) =>
    request({
      url: '/api/live/gift',
      method: 'GET',
      data,
      custom: {
        showLoading: true,
        auth: true,
      },
    }),
  typelist: (data) =>
    request({
      url: '/api/live/typelist',
      method: 'GET',
      data,
      custom: {
        showLoading: true,
        auth: true,
      },
    }),
  followlist: (data) =>
    request({
      url: '/api/live/followlist',
      method: 'GET',
      data,
      custom: {
        showLoading: true,
        auth: true,
      },
    }),
  addvideo: (data) =>
    request({
      url: '/api/live/addvideo',
      method: 'POST',
      data,
      custom: {
        showLoading: true,
        auth: true,
      },
    }),
  follow: (data) =>
    request({
      url: '/api/live/follow',
      method: 'POST',
      data,
      custom: {
        showLoading: true,
        auth: true,
      },
    }),
  addlive: (data) =>
    request({
      url: '/api/live/addlive',
      method: 'POST',
      data,
      custom: {
        showLoading: true,
        auth: true,
      },
    }),
};
